﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ShapeGame
{
    /// <summary>
    /// Interaction logic for Window3.xaml
    /// </summary>
    public partial class FilterWindow : Window
    {
        Theremin myTheremin;

        public FilterWindow(Theremin myTheremin)
        {
            this.myTheremin = myTheremin;
            InitializeComponent();
        }

        private void HighPass_Click(object sender, RoutedEventArgs e)
        {
            if (myTheremin.highPassFilter == true)
            {
                myTheremin.highPassFilter = false;
            }
            else
            {
                myTheremin.highPassFilter = true;
            }
        }

        private void LowPass_Click(object sender, RoutedEventArgs e)
        {
            if (myTheremin.lowPassFilter == true)
            {
                myTheremin.lowPassFilter = false;
            }
            else
            {
                myTheremin.lowPassFilter = true;
            }
        }
    }
}
